Skip to content

Remove RNG traits#291

Merged
bors[bot] merged 1 commit into
rust-embedded:masterfrom
eldruin:remove-rng
Jul 9, 2021
Merged

Remove RNG traits#291
bors[bot] merged 1 commit into
rust-embedded:masterfrom
eldruin:remove-rng

Conversation

@eldruin

@eldruin eldruin commented Jun 30, 2021

Copy link
Copy Markdown
Member

Duplicate of #270 adapted to the current status.
The documentation about what happened to the traits will go into the migration guide. See: #284.

Closes #270
Closes #128

@eldruin eldruin requested a review from a team as a code owner June 30, 2021 08:05
@rust-highfive

Copy link
Copy Markdown

r? @ryankurte

(rust-highfive has picked a reviewer for you, use r? to override)

Comment thread CHANGELOG.md
- Removed `prelude` to avoid method name conflicts between different flavors (blocking, nb) of the same trait. Traits must now be manually imported.

### Removed
- Removed random number generation (`rng`) traits in favor of [rand_core](https://crates.io/crates/rand_core).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably out of scope but (and plausible we already have one) but, it could be neat to have a using rand section in one of our books we could direct people to?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is a good idea. We can then also add a reference to that in the migration guide.
I filed rust-embedded/rust-embedded.github.io#35

@eldruin

eldruin commented Jul 7, 2021

Copy link
Copy Markdown
Member Author

@ryankurte would you like to wait until the guide on how to implement the rand_core traits is available in the book or can we merge this beforehand?

@ryankurte ryankurte left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't really mind either way, seems fine to me

@eldruin

eldruin commented Jul 9, 2021

Copy link
Copy Markdown
Member Author

Ok let's get this merged then.
bors r=ryankurte

@bors

bors Bot commented Jul 9, 2021

Copy link
Copy Markdown
Contributor

@bors bors Bot merged commit 113cb81 into rust-embedded:master Jul 9, 2021
@eldruin eldruin deleted the remove-rng branch July 9, 2021 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Review is incomplete T-hal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Discussion] rand::RngCore for blocking RNG trait

3 participants